/**
 * Created by DukeCrushIt on 2015/8/12.
 */
class BigdataScene extends eui.Component{
    public constructor(){
        super();
        // this.skinName = "skins.scene.BigdataSkin";
        // this.addEventListener(egret.Event.ADDED_TO_STAGE, this.addedToStage, this);
        // this.addEventListener(egret.Event.REMOVED_FROM_STAGE, this.removeedToStage, this);
    }
    // public updateCntGroup(result:any){
    //     var data = result.datas;
    //     var catCnt:number;
    //     var dogCnt:number;

    //     var len = result.datas.length;
    //     if( len == 0){
    //         catCnt = dogCnt = 1;
    //     }else if( len == 1){
    //         if( data[0].type == 501){
    //             catCnt = data[0].counts;
    //             dogCnt = 0;
    //         }else{
    //             catCnt = 0;
    //             dogCnt = data[0].counts;
    //         }
    //     }else{
    //         if( data[0].type == 501){
    //             catCnt = data[0].counts;
    //             dogCnt = data[1].counts;
    //         }else{
    //             catCnt = data[1].counts;
    //             dogCnt = data[0].counts;
    //         }
    //     }

    //     var total:number = catCnt + dogCnt;
    //     var fanGroup:dukeutil.FanGroup = new dukeutil.FanGroup(108);
    //     fanGroup.init([{label:"dog",percent:dogCnt/total,color:0xff87df, line:Model.me.myType == Model.GOOD_TYPE_DOG},{label:"cat",percent:catCnt/total,color:0xf7c8ef,line:Model.me.myType == Model.GOOD_TYPE_CAT}]);
    //     this.img_fan.source = fanGroup;
    //     this.group_cat_cnt.text = catCnt+"";
    //     this.group_dog_cnt.text = dogCnt+"";
    // }
    // public updateGenderGroup(result:any){

    //     var maleDog:number = 0;//result.datas[2].counts;
    //     var femaleDog:number = 0;// result.datas[3].counts;
    //     var maleCat:number = 0;//result.datas[0].counts;
    //     var femaleCat:number = 0;//result.datas[1].counts;

    //     var info;
    //     for(var i = 0 ; i < result.datas.length; i++){
    //         info = result.datas[i];
    //         if( info.type == Model.GOOD_TYPE_CAT){
    //             if( info.sex == Model.MALE){
    //                 maleCat = info.counts;
    //             }else{
    //                 femaleCat = info.counts;
    //             }
    //         }else if( info.type == Model.GOOD_TYPE_DOG){
    //             if( info.sex == Model.MALE){
    //                 maleDog = info.counts;
    //             }else{
    //                 femaleDog = info.counts;
    //             }
    //         }
    //     }

    //     var dogCnt = maleDog + femaleDog;
    //     var catCnt = maleCat + femaleCat;
    //     var referTotal = dogCnt > catCnt ? dogCnt : catCnt;
    //     referTotal += 6-(referTotal%6);
    //     var unitTotal = referTotal/6;
    //     this.lab_static_0_2.text = unitTotal + "";
    //     this.lab_static_0_3.text = unitTotal * 2 + "";
    //     this.lab_static_0_4.text = unitTotal * 3 + "";
    //     this.lab_static_0_5.text = unitTotal * 4 + "";
    //     this.lab_static_0_6.text = unitTotal * 5 + "";
    //     this.lab_static_0_7.text = unitTotal * 6 + "";
    //     this.img_male_dog.height = maleDog != 0 ? (215 * maleDog/referTotal + 24) : 0;
    //     this.img_male_dog.y = 355 - this.img_male_dog.height;
    //     this.img_female_dog.height = femaleDog != 0 ? (215 * femaleDog/referTotal + 24) : 0;
    //     this.img_female_dog.y = this.img_male_dog.y-this.img_female_dog.height+12;
    //     this.img_male_cat.height = maleCat != 0 ? (215 * maleCat/referTotal + 24) : 0;
    //     this.img_male_cat.y = 355 - this.img_male_cat.height;
    //     this.img_female_cat.height = femaleCat != 0 ? (215 * femaleCat/referTotal + 24) : 0;
    //     this.img_female_cat.y = this.img_male_cat.y-this.img_female_cat.height+12;
    //     this.img_dog_mark.x = this.img_female_dog.x + 12;
    //     this.img_dog_mark.y = this.img_female_dog.y - 13;
    //     this.img_cat_mark.x = this.img_female_cat.x + 12;
    //     this.img_cat_mark.y = this.img_female_cat.y - 13;
    // }
    // public updateGdpGroup(result:any){
    //     var total:number = result.datas[0].counts + result.datas[1].counts;
    //     total = total != 0 ? total : 1;
    //     var fanGroup:dukeutil.FanGroup = new dukeutil.FanGroup(108);
    //     fanGroup.init([{label:"dog",percent:result.datas[1].counts/total,color:0xff87df, line:Model.me.myType == Model.GOOD_TYPE_DOG},{label:"dog",percent:result.datas[0].counts/total,color:0xf7c8ef, line:Model.me.myType == Model.GOOD_TYPE_CAT}]);
    //     this.img_fan_1.source = fanGroup;
    //     var maxRank = result.maxRank;
    //     var rank = result.rank;
    //     this.group_hair_contributeid.text = GetNumString(result.count,false,true);
    //     if( rank != 0){
    //         var percent = Math.floor(10000 *(1- (rank/maxRank)))/100;
    //     }else{
    //         percent = 1;
    //     }
    //     this.group_per_gdp.text = GetNumString(percent,true);
    // }
    // private head_no1:eui.Image;
    // private head_no2:eui.Image;
    // private head_no0:eui.Image;
    // private lab_no0_name:eui.Label;
    // private lab_no1_name:eui.Label;
    // private lab_no2_name:eui.Label;
    // private group_no0_score:eui.BitmapLabel;
    // private group_no1_score:eui.BitmapLabel;
    // private group_no2_score:eui.BitmapLabel;
    // private group_hair_contributeid:eui.BitmapLabel;
    // public updateUserHairGroup(result:any){
    //     var myRank = result.rank;
    //     var list:any[] = result.datas;
    //     var len = list.length;
    //     var rankInfo:any;
    //     for(var idx = 0 ; idx < 3; idx++){
    //         if( idx < len){
    //             rankInfo = list[idx];
    //             this["head_no"+idx].source = Model.me.platform != PlatformEnum.QQBROWSER ? rankInfo.figureurl : RES.getRes("default_head_"+(rankInfo.userId%5));
    //             this["lab_no"+idx+"_name"].text = LimitStringLen(rankInfo.name,7);
    //             this["group_no"+idx+"_score"].text = GetNumString(rankInfo.dailyCount,false,true)
    //         }else{

    //         }
    //     }
    //     this.fuck_10.visible = this.master_rank.visible = myRank != 0;
    //     this.no_rank_1.visible = myRank == 0;
    //     if( myRank != 0 )
    //         this.master_rank.text = myRank+"";
    // }
    // public updatePetHairGroup(result:any) {
    //     var myRank = result.rank;
    //     var list:any[] = result.datas;
    //     var len = list.length;
    //     var rankInfo:any;
    //     for (var idx = 0; idx < 3; idx++) {
    //         if (idx < len) {
    //             rankInfo = list[idx];
    //             this["head_no"+idx+"_1"].source = Model.me.platform != PlatformEnum.QQBROWSER ? rankInfo.figureurl : RES.getRes("default_head_"+(rankInfo.userId%5));//rankInfo.figureurl;
    //             this["lab_no" + idx + "_name_1"].text = LimitStringLen(rankInfo.name,7);
    //             this["group_no" + idx + "_score_1"].text = GetNumString(rankInfo.dailyCount,false,true);
    //             if( rankInfo.petId != 0)
    //                 this["pet_no"+idx].source = GameConst.Res_Root+"resource/assets/petpreview/"+rankInfo.petId+".png";
    //         }
    //     }

    //     this.fuck_11.visible = this.group_pet_rank.visible = myRank != 0;
    //     this.no_rank_2.visible = myRank == 0;
    //     if( myRank != 0 )
    //         this.group_pet_rank.text = myRank+"";
    // }
    // private zanProvider;
    // public updateZanGroup(result:any){
    //     if( !this.zanProvider){
    //         this.zanProvider = new eui.ArrayCollection(result.datas);
    //         this.zan_list.dataProvider = this.zanProvider;
    //     }else{
    //         if(result.datas.length){
    //             this.zanProvider.source = this.zanProvider.source.concat(result.datas);
    //             if( this.zanProvider.source.length > 5){
    //                 this.zan_list.validateNow();
    //                 this.zan_list.dataGroup.verticalScrollPosition = this.zan_list.dataGroup.contentHeight - this.zan_list.height;
    //             }else{
    //                 this.zan_list.dataGroup.verticalScrollPosition = 0;
    //             }
    //         }
    //     }
    //     if( result.rank != 0 && result.rank != 1000){
    //         this.lab_rank.text = result.rank+"";
    //         this.no_rank_zan.visible = false;
    //         this.lab_rank.visible = true;
    //     }else{
    //         this.no_rank_zan.visible = true;
    //         this.lab_rank.visible = false;
    //     }

    //     this.cnt_zan.text = result.popularity.dailyPopularity+"";
    //     this.show_more_zan.visible = result.datas.length == 5 && this.currentZanPage < 10;
    //     if( result.popularity.lastRank != 1000 && result.popularity.lastRank != 0){
    //         this.no_rank_last_0.visible = false;
    //         this.last_rank_0.visible = true;
    //         this.last_rank_0.text = result.popularity.lastRank+"";
    //     }else{
    //         this.no_rank_last_0.visible = true;
    //         this.last_rank_0.visible = false;
    //     }
    //     Model.pwarded = result.popularity.awarded;
    //     this.can_get_0.text = this.canGetMeng(result.popularity.lastRank)+"";
    //     this.total_meng_0.text = GetNumString(Model.me.sproutPoint,false, true);
    // }
    // private canGetMeng(rank):number{
    //     if( rank == 0)
    //         return 10;
    //     if( rank == 1){
    //         return 200;
    //     }else if( rank < 11){
    //         return 160;
    //     }else if( rank < 31){
    //         return 140;
    //     }else if( rank < 51){
    //         return 120;
    //     }else if( rank < 101){
    //         return 100;
    //     }else if( rank < 201){
    //         return 80;
    //     }else if( rank < 351){
    //         return 60;
    //     }else if( rank < 601){
    //         return 40;
    //     }else if( rank < 1000){
    //         return 20;
    //     }
    //     return 10;
    // }
    // private robProvider;
    // public updateRobGroup(result:any){
    //     if( !this.robProvider){
    //         this.robProvider = new eui.ArrayCollection(result.datas);
    //         this.rob_list.dataProvider = this.robProvider;
    //     }else{
    //         if(result.datas.length != 0){
    //             this.robProvider.source = this.robProvider.source.concat(result.datas);
    //             if( this.robProvider.source.length > 5){
    //                 this.rob_list.validateNow();
    //                 this.rob_list.dataGroup.verticalScrollPosition = this.rob_list.dataGroup.contentHeight - this.rob_list.height;
    //             }else{
    //                 this.rob_list.dataGroup.verticalScrollPosition = 0;
    //             }
    //         }
    //     }
    //     if( result.rank != 0 &&  result.rank != 1000){
    //         this.lab_rank_rob.text = result.rank+"";
    //         this.no_rank_rob.visible = false;
    //         this.lab_rank_rob.visible = true;
    //     }else{
    //         this.no_rank_rob.visible = true;
    //         this.lab_rank_rob.visible = false;
    //     }

    //     this.cnt_rob.text = GetNumString(result.data.dailyCount,false, true);
    //     this.show_more_rob.visible = result.datas.length == 5 && this.currentRobPage < 10;

    //     if( result.data.rank != 1000 && result.data.rank != 0){
    //         this.no_rank_last_1.visible = false;
    //         this.last_rank_1.visible = true;
    //         this.last_rank_1.text = result.data.rank+"";
    //     }else{
    //         this.no_rank_last_1.visible = true;
    //         this.last_rank_1.visible = false;
    //     }
    //     Model.rwarded = result.data.awarded;
    //     this.can_get_1.text = this.canGetMeng(result.data.rank)+"";
    //     this.total_meng_1.text = GetNumString(Model.me.sproutPoint,false,true);
    // }
    // public onMengAwardBack(type:number = 0){
    //     this.total_meng_0.text = Model.me.sproutPoint+"";
    //     if(type == 0){
    //         Model.pwarded = true;
    //     }else if( type == 1){
    //         Model.rwarded = true;
    //     }
    //     this.total_meng_1.text = Model.me.sproutPoint+"";
    // }
    // private onPageLeft(evt:egret.TouchEvent){
    //     this.curPage--;
    //     this.showPage();
    // }
    // private onPageRight(evt:egret.TouchEvent){
    //     this.curPage++;
    //     this.showPage();
    // }
    // private currentZanPage:number = 0;
    // private currentRobPage:number = 0;
    // private showPage(){
    //     this.img_arrow_right.visible = this.curPage != 5;
    //     this.img_arrow_left.visible = this.curPage >= 1;

    //     this.viewStack.selectedIndex = this.curPage;
    //     if( this.curPage == 0 ){
    //         if( this.currentZanPage == 0){
    //             window["__userPopularity"](1);
    //             this.currentZanPage = 1;
    //         }
    //     }else if( this.curPage == 1 ){
    //         if( this.currentRobPage == 0){
    //             window["__robHairs"](1);
    //             this.currentRobPage = 1;
    //         }
    //     }else if( this.curPage == 2 ){
    //         window["__petCount"]();
    //     }else if( this.curPage == 3 ){
    //         window["__petHairs"]();
    //     }else if( this.curPage == 4 ){
    //         window["__userHair"]();
    //     }else if( this.curPage == 5 ){
    //         window["__petHair"]();
    //     }
    //     PanelContainer.getInstance().updateBigDataTitle(this.curPage);
    // }
    // private curPage:number = 0;
    // public img_arrow_left:eui.Image;
    // public img_arrow_right:eui.Image;
    // //public fan_group:eui.Group;
    // public img_fan:eui.Image;
    // public img_fan_1:eui.Image;
    // public group_cat_cnt:eui.BitmapLabel;
    // public group_dog_cnt:eui.BitmapLabel;
    // public lab_static_0_2:eui.Label;
    // public lab_static_0_3:eui.Label;
    // public lab_static_0_4:eui.Label;
    // public lab_static_0_5:eui.Label;
    // public lab_static_0_6:eui.Label;
    // public lab_static_0_7:eui.Label;
    // public img_male_dog:eui.Image;
    // public img_female_dog:eui.Image;
    // public img_male_cat:eui.Image;
    // public img_female_cat:eui.Image;
    // public img_dog_mark:eui.Image;
    // public img_cat_mark:eui.Image;

    // private head_no1_1:eui.Image;
    // private head_no2_1:eui.Image;
    // private head_no0_1:eui.Image;
    // private pet_no0:eui.Image;
    // private pet_no1:eui.Image;
    // private pet_no2:eui.Image;
    // private lab_no0_name_1:eui.Label;
    // private lab_no1_name_1:eui.Label;
    // private lab_no2_name_1:eui.Label;
    // private group_no0_score_1:eui.BitmapLabel;
    // private group_no1_score_1:eui.BitmapLabel;
    // private group_no2_score_1:eui.BitmapLabel;
    // private group_per_gdp:eui.BitmapLabel;
    // //public forbes_master_group:eui.Group;
    // //public forbes_pet_group:eui.Group;
    // public group_pet_rank:eui.BitmapLabel;
    // public master_rank:eui.BitmapLabel;
    // public viewStack:eui.ViewStack;

    // private no_rank_1:eui.Image;
    // private no_rank_2:eui.Image;
    // private fuck_11:eui.Image;
    // private fuck_10:eui.Image;

    // private zan_list:eui.List;
    // private lab_rank:eui.BitmapLabel;
    // private img_head_zan:eui.Image;
    // private lab_name_zan:eui.Label;
    // private cnt_zan:eui.BitmapLabel;
    // private show_more_zan:eui.Image;

    // private rob_list:eui.List;
    // private lab_rank_rob:eui.BitmapLabel;
    // private img_head_rob:eui.Image;
    // private lab_name_rob:eui.Label;
    // private cnt_rob:eui.BitmapLabel;
    // private show_more_rob:eui.Image;
    // private no_rank_zan:eui.Image;
    // private no_rank_rob:eui.Image;

    // private last_rank_0:eui.BitmapLabel;
    // private meng_rule_0:eui.Image;
    // private can_get_0:eui.BitmapLabel;
    // private no_rank_last_0:eui.Image;
    // private total_meng_0:eui.BitmapLabel;
    // private img_get_meng_0:eui.Image;

    // private last_rank_1:eui.BitmapLabel;
    // private meng_rule_1:eui.Image;
    // private can_get_1:eui.BitmapLabel;
    // private no_rank_last_1:eui.Image;
    // private total_meng_1:eui.BitmapLabel;
    // private img_get_meng_1:eui.Image;
    // public partAdded(name:string, instance:any){
    //     super.partAdded(name, instance);
    //     if( name == "viewStack"){
    //         this.viewStack = instance;
    //     }else if( name == "last_rank_1"){
    //         this.last_rank_1 = instance;
    //     }else if( name == "meng_rule_1"){
    //         this.meng_rule_1 = instance;
    //     }else if( name == "can_get_1"){
    //         this.can_get_1 = instance;
    //     }else if( name == "no_rank_last_1"){
    //         this.no_rank_last_1 = instance;
    //     }else if( name == "total_meng_1"){
    //         this.total_meng_1 = instance;
    //     }else if( name == "img_get_meng_1"){
    //         this.img_get_meng_1 = instance;
    //     }else if( name == "last_rank_0"){
    //         this.last_rank_0 = instance;
    //     }else if( name == "meng_rule_0"){
    //         this.meng_rule_0 = instance;
    //     }else if( name == "can_get_0"){
    //         this.can_get_0 = instance;
    //     }else if( name == "no_rank_last_0"){
    //         this.no_rank_last_0 = instance;
    //     }else if( name == "total_meng_0"){
    //         this.total_meng_0 = instance;
    //     }else if( name == "img_get_meng_0"){
    //         this.img_get_meng_0 = instance;
    //     }
    //     else if( name == "fuck_11"){
    //         this.fuck_11 = instance;
    //     }else if( name == "fuck_10"){
    //         this.fuck_10 = instance;
    //     }else if( name == "img_fan"){
    //         this.img_fan = instance;
    //     }else if( name == "img_fan_1"){
    //         this.img_fan_1 = instance;
    //     }else if( name == "group_dog_cnt"){
    //         this.group_dog_cnt = instance;
    //     }else if( name == "group_cat_cnt"){
    //         this.group_cat_cnt = instance;
    //     }else if( name == "img_arrow_left"){
    //         this.img_arrow_left = instance;
    //     }else if( name == "img_arrow_right"){
    //         this.img_arrow_right = instance;
    //     }else if( name == "no_rank_2" ){
    //         this.no_rank_2 = instance;
    //     }else if( name == "no_rank_1" ){
    //         this.no_rank_1 = instance;
    //     }else if( name == "head_no0" ){
    //         this.head_no0 = instance;
    //     }else if( name == "head_no1" ){
    //         this.head_no1 = instance;
    //     }else if( name == "head_no2" ){
    //         this.head_no2 = instance;
    //     }else if( name == "lab_no0_name" ){
    //         this.lab_no0_name = instance;
    //     }else if( name == "lab_no1_name" ){
    //         this.lab_no1_name = instance;
    //     }else if( name == "lab_no2_name" ){
    //         this.lab_no2_name = instance;
    //     }else if( name == "group_pet_rank"){
    //         this.group_pet_rank = instance;
    //         this.group_pet_rank.textAlign = "center";
    //     }else if( name == "group_no0_score" ){
    //         this.group_no0_score = instance;
    //         this.group_no0_score.textAlign = "center";
    //     }else if( name == "group_no1_score" ){
    //         this.group_no1_score = instance;
    //         this.group_no1_score.textAlign = "center";
    //     }else if( name == "group_no2_score" ){
    //         this.group_no2_score = instance;
    //         this.group_no2_score.textAlign = "center";
    //     }else if( name == "head_no0_1" ){
    //         this.head_no0_1 = instance;
    //     }else if( name == "head_no1_1" ){
    //         this.head_no1_1 = instance;
    //     }else if( name == "head_no2_1"){
    //         this.head_no2_1 = instance;
    //     }else if( name == "lab_no0_name_1" ){
    //         this.lab_no0_name_1 = instance;
    //     }else if( name == "lab_no1_name_1"){
    //         this.lab_no1_name_1 = instance;
    //     }else if( name == "lab_no2_nam_1" ){
    //         this.lab_no2_name_1= instance;
    //     }else if( name == "group_no0_score_1" ){
    //         this.group_no0_score_1 = instance;
    //         this.group_no0_score_1.textAlign = "center";
    //     }else if( name == "group_no1_score_1" ){
    //         this.group_no1_score_1 = instance;
    //         this.group_no1_score_1.textAlign = "center";
    //     }else if( name == "group_no2_score_1"){
    //         this.group_no2_score_1 = instance;
    //         this.group_no2_score_1.textAlign = "center";
    //     }else if( name == "group_hair_contributeid"){
    //         this.group_hair_contributeid = instance;
    //     }else if( name == "group_per_gdp"){
    //         this.group_per_gdp = instance;
    //         this.group_per_gdp.textAlign = "center";
    //     }else if( name == "pet_no0"){
    //         this.pet_no0 = instance;
    //     }else if( name == "pet_no1"){
    //         this.pet_no1 = instance;
    //     }else if( name == "pet_no2"){
    //         this.pet_no2 = instance;
    //     }else if( name == "master_rank"){
    //         this.master_rank = instance;
    //         this.master_rank.textAlign = "center";
    //     }else if( name == "zan_list"){
    //         this.zan_list = instance;
    //         this.zan_list.itemRenderer = new eui.ClassFactory(ZanItemRender);
    //     }else if( name == "lab_rank"){
    //         this.lab_rank = instance;
    //         this.lab_rank.textAlign = "center";
    //     }else if( name == "lab_name_zan"){
    //         this.lab_name_zan = instance;
    //         this.lab_name_zan.text = LimitStringLen(Model.me.name,7);
    //     }else if( name == "cnt_zan"){
    //         this.cnt_zan = instance;
    //     }else if( name == "img_head_zan"){
    //         this.img_head_zan = instance;
    //         if( Model.me.platform != PlatformEnum.QQBROWSER){
    //             this.img_head_zan.source = Model.me.figureurl;
    //         }else{
    //             this.img_head_zan.source = RES.getRes("default_head_"+(Model.me.id%5));
    //         }
    //         //this.img_head_zan.source = Model.me.figureurl;
    //     }else if( name == "show_more_zan"){
    //         this.show_more_zan = instance;
    //     }else if( name == "lab_rank_rob"){
    //         this.lab_rank_rob = instance;
    //         this.lab_rank_rob.textAlign = "center";
    //     }else if( name == "lab_name_rob"){
    //         this.lab_name_rob = instance;
    //         this.lab_name_rob.text = LimitStringLen(Model.me.name,7);
    //     }else if( name == "cnt_rob"){
    //         this.cnt_rob = instance;
    //     }else if( name == "img_head_rob"){
    //         this.img_head_rob = instance;
    //         if( Model.me.platform != PlatformEnum.QQBROWSER){
    //             this.img_head_rob.source = Model.me.figureurl;
    //         }else{
    //             this.img_head_rob.source = RES.getRes("default_head_"+(Model.me.id%5));
    //         }
    //     }else if( name == "show_more_rob"){
    //         this.show_more_rob = instance;
    //     }else if( name == "rob_list"){
    //         this.rob_list = instance;
    //         this.rob_list.itemRenderer = new eui.ClassFactory(RobRankItemRender);
    //     }else if( name == "no_rank_zan"){
    //         this.no_rank_zan = instance;
    //     }else if( name == "no_rank_rob"){
    //         this.no_rank_rob = instance;
    //     }
    // }
    // private onShowMoreZan(evt:egret.TouchEvent){
    //     if( this.currentZanPage < 10){
    //         this.currentZanPage++;
    //         window["__userPopularity"](this.currentZanPage);
    //     }
    // }
    // private onShowMoreRob(evt:egret.TouchEvent){
    //     if( this.currentRobPage < 10){
    //         this.currentRobPage++;
    //         window["__robHairs"](this.currentRobPage);
    //     }
    // }
    // private showMengRule(evt:egret.TouchEvent){
    //     MengRulePanel.getInstance().show();
    // }
    // private getMeng(evt:egret.TouchEvent){
    //     if(evt.target == this.img_get_meng_0 ){
    //         if(Model.pwarded){
    //             ShowHint("今日奖励已领取");
    //         }else{
    //             window["__popularityAward"]();
    //         }
    //     }else{
    //         if(Model.rwarded) {
    //             ShowHint("今日奖励已领取");
    //         }else{
    //             window["__robAward"]();
    //         }
    //     }
    // }
    // private addedToStage(evt:egret.Event){
    //     this.img_arrow_left.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onPageLeft, this);
    //     this.img_arrow_right.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onPageRight, this);
    //     this.show_more_zan.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onShowMoreZan, this);
    //     this.show_more_rob.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onShowMoreRob, this);
    //     this.meng_rule_1.addEventListener(egret.TouchEvent.TOUCH_TAP, this.showMengRule, this);
    //     this.meng_rule_0.addEventListener(egret.TouchEvent.TOUCH_TAP, this.showMengRule, this);
    //     this.img_get_meng_0.addEventListener(egret.TouchEvent.TOUCH_TAP, this.getMeng, this);
    //     this.img_get_meng_1.addEventListener(egret.TouchEvent.TOUCH_TAP, this.getMeng, this);
    //     this.showPage();
    // }
    // private removeedToStage(evt:egret.Event){
    //     this.img_arrow_left.removeEventListener(egret.TouchEvent.TOUCH_TAP, this.onPageLeft, this);
    //     this.img_arrow_right.removeEventListener(egret.TouchEvent.TOUCH_TAP, this.onPageRight, this);
    //     this.show_more_zan.removeEventListener(egret.TouchEvent.TOUCH_TAP, this.onShowMoreZan, this);
    //     this.show_more_rob.removeEventListener(egret.TouchEvent.TOUCH_TAP, this.onShowMoreRob, this);
    //     this.meng_rule_1.removeEventListener(egret.TouchEvent.TOUCH_TAP, this.showMengRule, this);
    //     this.meng_rule_0.removeEventListener(egret.TouchEvent.TOUCH_TAP, this.showMengRule, this);
    //     this.img_get_meng_0.removeEventListener(egret.TouchEvent.TOUCH_TAP, this.getMeng, this);
    //     this.img_get_meng_1.removeEventListener(egret.TouchEvent.TOUCH_TAP, this.getMeng, this);
    //     this.currentZanPage = 0;
    //     this.zanProvider.source = [];
    //     this.currentRobPage = 0;
    //     if( this.robProvider)
    //         this.robProvider.source = [];
    //     if( this.rob_list.dataGroup )
    //         this.rob_list.dataGroup.verticalScrollPosition = 0;
    //     this.zan_list.dataGroup.verticalScrollPosition = 0;
    //     this.show_more_rob.visible = true;
    //     this.show_more_zan.visible = true;
    // }
    private static _instance:BigdataScene;
    public static getInstance():BigdataScene{
        if( BigdataScene._instance == null)
            BigdataScene._instance = new BigdataScene();
        return BigdataScene._instance;
    }
}